<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
	<head>
		<meta name="decorator" content="common" />
		<script>
			$(function(){
				$('#noticeNav').addClass("on");
				var checkId=$('#checkType').val();
				var liId="type"+checkId;
				$('.my-order li').removeClass('curr');
				$('#'+liId+'').addClass("curr");
				if(checkId==12){
					$(".noticeInfo").text("行业公告")
				}
	            if(checkId==15){
	            	$(".noticeInfo").text("技术支持")
				}
	            
 			    if(checkId==19){
 			   	    $(".noticeInfo").text("内部公告")
				}
			})
			function page(n,s){
				$("#pageNo").val(n);
				$("#pageSize").val(s);
				$("#searchForm").submit();
	        	return false;
        	}
		</script>
	</head>
	<body>
		
	<!--4line-->
	<div class="four_line"></div>
	<!--4line结束-->
	<!--主题内容-->
	<div class="parts_main_box bgf5">
		<div class="container">
			<div class="row">
				<!-- pc 订单管理 -->
				<div class="Credit_box clearfix">
					<!-- 左边部分 -->
					<div class="col-sm-2 pad0">
						<div class="my-order my-order_ph">
							<ul class="clearfix">
								<input type="hidden" id="checkType" value="${params.noticeType}"/>
								<c:if test="${not empty typeList}">
									<c:forEach items="${typeList}" var="noticeType">
										<li class="item" id="type${noticeType.id}" > <!-- class="item curr" -->
											<a  href="${ctxWeb }/notice/findNoticeByType?noticeType=${noticeType.id}">${noticeType.title} </a>
										</li>
									</c:forEach>
								</c:if>
							</ul>
						</div>
					</div>
					<!-- 左边部分 end-->
					<!-- 右边部分 -->
					<div class="col-sm-10 pad20 pad_10" id="noticeList">
						<div class="Credit_right">
							<!--公告列表-->
							<div class="goods_detail_info_box mar_16 clearfix">
								<h3>
									<span class="noticeInfo">行业公告</span>
								</h3>
								<!--新闻结束-->
								<div class="news_list clearfix">
									<div class="news_main_info">
										<ul>
											<c:if test="${not empty page.list}">
												<c:forEach items="${page.list}" var="notice">
													<li class="clearfix">
														<a href="${ctxWeb}/noticeDetail?id=${notice.id}&noticeType=${params.noticeType }">
															<p class="news_msg noWrapEllipsis col-xs-12 col-sm-9">
																<i class="triangle"></i>
																<span>${notice.title}</span>
															</p>
															<p class="datetime col-xs-4 col-sm-3 text-right pad0">
																
															</p>
														</a>
													</li>
												</c:forEach>
											</c:if>
										</ul>
									</div>
								</div>
								<!--新闻结束-->
							</div>	
							<!--公告列表结束-->
							<form:form id="searchForm" modelAttribute="notice" action="${ctxWeb}/notice/findNoticeByType?noticeType=${params.noticeType}" method="post" class="">
								<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
								<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
							</form:form>
							<div class="pagination">${page}</div>
						</div>
					</div>
					<!-- 右边部分 end-->
				</div>
				<!-- pc 订单管理 end -->
			</div>
		</div>
	</div>
	<!--主题内容-->
	

	</body>
	
</html>
